package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class EmbeddedVariableName implements LocatorReference, SimpleTargetSpecification {

    private int beginIndex;
    private int endIndex;
    private HostIdentifier hostIdentifier;

    public EmbeddedVariableName(int beginIndex, HostIdentifier hostIdentifier) {
        this.beginIndex = beginIndex;
        this.endIndex = hostIdentifier.getEndIndex();
        this.hostIdentifier = hostIdentifier;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public HostIdentifier getHostIdentifier() {
        return hostIdentifier;
    }

}
